/*
 * UnitAnimalMoving.h
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#ifndef UNITANIMALMOVING_H_
#define UNITANIMALMOVING_H_

#include "UnitAnimal.h"
#include "UnitAnimalPosition.h"
#include "GuudTime.h"

namespace guud {

class UnitAnimalMoving {
public:
	UnitAnimalMoving();
	void init(UnitAnimalPosition * pUnitAnimalPosition);
	//添加动物
	void addAnimal(UnitAnimal & stUnitAnimal);
	//删除动物
	void delAnimal(uint32_t uiId);
	//动物移动
	void moving();
private:
	std::map<uint32_t, UnitAnimal *> m_mapUnitAnimal;
	UnitAnimalPosition * m_pUnitAnimalPosition;
};

}

#endif /* UNITANIMALMOVING_H_ */
